home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7205 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.mindlink.net!giant!a09748
  2. From: a09748@giant.mindlink.bc.ca (ESSA)
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++,comp.lang.basic.visual.misc
  4. Subject: Re: Prob calling VC++ 4.0 DLL from VB4 (32bit)
  5. Followup-To: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++,comp.lang.basic.visual.misc
  6. Date: 22 Feb 1996 04:41:55 GMT
  7. Organization: MIND LINK! - British Columbia, Canada
  8. Message-ID: <4ggs6j$4j1@fountain.mindlink.net>
  9. References: <4f7u8h$63q@fountain.mindlink.net> <3129a180.11614278@nntp.ix.netcom.com>
  10. NNTP-Posting-Host: giant.mindlink.net
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Bill Boland (billbo@ix.netcom.com) wrote:
  14. : >Having a frustrating time trying to call a function in a DLL developed in
  15. : >VC++ 4.0 from Visual Basic 4.0 (32bit). I'm getting VB error 49 (bad DLL
  16. : >calling convention) from the following simple function ...
  17.  
  18. : I may have a clue since I had a similar situation today.
  19. : If a DLL is compiled with VB 4.0 WITHOUT a module definition file and
  20. : uses  the new __declspec( dllexport ) to declare functions as
  21. : exportable, VB4 cannot seem to understand them. At least that is what
  22. : I discovered today on my own.
  23.  
  24. Thanks Bill. And thanks Rob Ross of FTP Software, who got back to me after 
  25. phoning MS support about the same problem.
  26. In the root of the VB4 installation directory, there is a file called 
  27. vb4dll.txt that explains a number of issues concerning 32bit DLL's, including
  28. the problems I'd been having.
  29. The solution, as Bill discovered (how many hours do you figure we've all 
  30. collectively wasted ?) is the use of the DEF file.
  31.  
  32. ---
  33. pwhiteside@essa.com
  34. ESSA Software Ltd.
  35.  
  36.